﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductList.ascx.cs" Inherits="BookStore.Controls.ProductList" %>
    <div class="box featured">
  <div class="box-heading">PRODUCT OLD</div>
  <div class="box-content">
    <div class="box-product">
         
            <asp:DataList ID="listproduct" runat="server" RepeatColumns="5" 
                 RepeatDirection="Horizontal" 
                 RepeatLayout="Flow">
        <ItemTemplate>
           <ul>
            <li>
                     <div class="padd-both">
                    <div class="image2"><a href="<%# Eval("productID") %>"> <asp:LinkButton ID="lbnimg" runat="server" 
                            CommandArgument='<%# Eval("productId") %>' onclick="lbnimg_Click"> <asp:Image ID="Image1" runat="server" ImageUrl='<%# "/image/Catalog/"+Eval("images") %>' Width="126px" Height="188px" /> </asp:LinkButton></a></div>
                     <div class="name maxheight"><a href="#"> 
                         <asp:LinkButton ID="lnbname" runat="server"
                        CommandArgument='<%# Eval("productId") %>' Text='<%# Eval("productName") %>' 
                             onclick="lnbname_Click"></asp:LinkButton>
                         <div class="price"
                         <span class="price-new"><asp:Label ID="Label1" runat="server" Text='<%# Eval("price", "{0:C}") %>'></asp:Label></span>
                                          </div>
                     <div class="cart" style=" text-align:center; ">
                        <asp:LinkButton ID="LinkButton1" runat="server" CssClass="button addToCart" 
                              ForeColor="White" Font-Size="12px" Height="22px" Width="100px"  
                              CommandArgument='<%# Eval("productId") %>' onclick="LinkButton1_Click">Add to cart</asp:LinkButton></a></div>
                </div>
                </li>
            </ul> 
        </ItemTemplate>
    </asp:DataList>
            
    </div>
  </div>
</div>